Title: Removing the Footer Menu on Storefront Mobile Layout

Publish Date: Mon, 27 Feb 2017 08:40:02 +0000

Categories: Uncategorized

Content:

[ablank href="https://woocommerce.com/storefront/"]Storefront[/ablank] is mainly an eCommerce theme, it is built by the developers of [ablank href="https://woocommerce.com/"]WooCommerce[/ablank], for WooCommerce users.

But, it is a very customizable theme, so it can also be used in other ways. In example, I use it on this blog, without WooCommerce, and it still works perfectly. Many people use it with WooCommerce but only as a catalog, so customers are not able to buy products on the site, but just look at them.

In this last case, you probably don't need the Cart and Checkout pages, so you remove them, but Storefront still shows a menu in the Footer area when you visit the site on a mobile device, and that menu leads you to the Cart page as well, which you removed.

How can you hide that menu when it is not needed?



Open your functions.php file in wp-content/themes/your-child-theme-name/ and add this code at the end of the file:

https://gist.github.com/SiR-DanieL/0d2b87cdeabe4291bc5f3e9044a1fdc0

This code will remove the footer menu when visiting the site from mobile.
